package day06;

import java.util.Arrays;
import java.util.Random;

public class Extend2 {
    public static void main(String[] args) {
        int[] arr=new int[10];
        Random random=new Random();
        for (int i = 0; i <arr.length ; i++) {
            arr[i]=random.nextInt(100);
        }
        System.out.println(Arrays.toString(arr));
        printArrayData(arr);
    }
    private static void printArrayData(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
